import { getReq, postReq, getFileReq } from '@U/common'

// 获取智客持有主体列表
export const getHoldMainBodyList = () => getReq('/api/channel-agent/holding-studio-list')

// 获取收稻工作室信息
export const getShouDaoStudioInfo = (params = {}) => getReq('/api/channel-agent/studio/info', params)

// 获取外部其他企业信息
export const getExternalEnterprisesInfo = (params = {}) => getReq('/api/channel-agent/third-enterprise/info', params)
// 获取美稻AccountId
export const getMeidaoAccountId = () => getReq('/api/channel-agent/account')

// 获取银行列表
export const getBankList = (params = {}) => getReq('/api/channel-agent/third-enterprise/open-bank-list', params)

// 工作室上传营业执照
export const studioUploadBusinessLicense = (params = {}) => postReq('/api/channel-agent/studio/upload-businesslicense', params)

// 获取工作室自动签链接
export const getStudioAutoSignLink = (params = {}) => getReq('/api/channel-agent/studio/auth-auto-sign', params)

// 修改银行证明材料
export const modifyBankCertificateMaterial = (params = {}) => postReq('/api/channel-agent/third-enterprise/modify-bank-certification-pic', params, 'application/json;charset=UTF-8')

// 新增其他企业第一步
export const createThirdEnterpriseFirstStep = (params: object) => postReq('/api/channel-agent/third-enterprise/create-first-step', params, 'application/json;charset=UTF-8')
// 修改其他企业第一步
export const modifyThirdEnterpriseFirstStep = (params: object) => postReq('/api/channel-agent/third-enterprise/modify-first-step', params, 'application/json;charset=UTF-8')

// 新增 or 修改其他企业第二步
export const updateThirdEnterpriseSecondStep = (params: object) => postReq('/api/channel-agent/third-enterprise/modify-second-step', params, 'application/json;charset=UTF-8')
// 新增 or 修改其他企业第三步
export const updateThirdEnterpriseThirdStep = (params: object) => postReq('/api/channel-agent/third-enterprise/modify-third-step', params, 'application/json;charset=UTF-8')
